﻿using Autofac;
using System;
using System.Collections.Generic;
using System.Text;
using WebSocketCore.Domain;
using WebSocketCore.Domain.Impl;

namespace WebSocketCore.Cfg
{
    public class DefaultModule : Module
    {
        protected override void Load(ContainerBuilder builder)
        {
            builder.RegisterType<UserManager>().As<IUserManager>();
            builder.RegisterType<ChatRoomManager>().As<IChatRoomManager>();
            builder.RegisterType<MessageManager>().As<IMessageManager>();
            builder.RegisterType<WebSocketInvoker>().As<IWebSocketInvoker>();
        }
    }
}
